package com.itfreer.special.dictionary;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.itfreer.form.api.dictionary.DictionaryEntity;
import com.itfreer.form.api.dictionary.LocalDictionaryBase;

/**
 * 定义数据类型本地字典
 */
@Component
public class ReportMonthDictionary extends LocalDictionaryBase {

	@Override
	public String getDictionaryName() {
		return "report_month";
	}
	
	@Override
	protected List<DictionaryEntity> getDictionarys() {
		List<DictionaryEntity> list = new ArrayList<DictionaryEntity>();
		
		for(int i=1;i<=12;i++) {
			DictionaryEntity item = new DictionaryEntity();
			item.setId(i+"");
			item.setCode(i+"");
			item.setDisplay(i+"月");
			item.setOrder(i);
			list.add(item);
		}
		
		return list;
	}
}
